package com.video.common.constant;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author maomao
 */
@Component
public class ServerConstant {

    @Value("${filelib.space}")
    private String fileSpace;

    @Value("${filelib.ffmpegPath}")
    private String ffmpegPath;

    /**
     * 文件保存的命名空间
     */
    public static String FILE_SPACE;


    /**
     * ffmpeg所在目录
     */
    public static String FFMPEG_EXE;

    @PostConstruct
    public void load(){
        FILE_SPACE = this.fileSpace;
        FFMPEG_EXE = this.ffmpegPath;
    }

}
